home *** CD-ROM | disk | FTP | other *** search
-
- IncRev
- Revision Incrementor
- by Bryan Ford
-
- IncRev is a very small and simple program I wrote in order to allow me
- to automatically increment the revision number of a program every time I
- recompiled. It creates its own object module, Rev.o, which contains a
- global symbol called Revision, which is a longword variable. You can get
- access to this variable in C by inserting "extern long Revision;" in your
- code. This variable will always contain the current revision number.
- I defined Revision as a long for two reasons. First, since AmigaDOS
- only does things on longword boundaries anyway, there's no reason not to.
- And second, just in case you're recompiling more than 32767 times.
- IncRev takes no parameters. If Rev.o exists, it increments its
- revision number. If it doesn't it creates it and resets the revision
- number. You'll need to include Rev.o in your linking list and make sure
- it's run before you link your program. If you use makefiles like me, you
- can just insert the command before the linking command.
- This program is being distributed as Freeware, which means you can copy
- and distribute this program as much as you like, as long as you keep it in
- its original form, including this document, and no fee is charged for
- copying. No donation is required, since this is such a small program. I
- may be reached at the address below for comments, questions, and flames.
-
- Bryan Ford
- Snail: 1790 East 1400 North
- Logan, UT 84321
- Phone: (801)753-1159
- Bitnet: FATQW@USU
-
-